package com.hitqz.robot.dispatch.netty.util;

import cn.hutool.extra.spring.SpringUtil;
import com.google.common.cache.Cache;
import com.hitqz.robot.api.business.dto.RobotClientSummaryDto;

/**
 * @author xupkun
 * @date 2024/7/28
 */
public class DispatchUtil {

    public static RobotClientSummaryDto getRobotStatus(String clientId) {
        Cache<String, RobotClientSummaryDto> posInfoDtoCache = SpringUtil.getBean("robotCache");
        return posInfoDtoCache.getIfPresent(clientId);
    }


}
